<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ page isELIgnored="false" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %>
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <link rel='shortcut' type="image/x-icon" icon href="/favicon.ico">
        <script language="javascript" src="JQuery/js/jquery-1.3.min.js"></script>
        <script type="text/javascript" src="JQuery/js/jquery-1.3.2.min.js"></script>
        <script type="text/javascript" src="JQuery/js/jquery.infinitecarousel.js"></script>
        <script type="text/javascript">
            function mainmenu(){
                $(" #nav ul ").css({display: "none"});
                $(" #nav li").hover(function(){
                    $(this).find('ul:first:hidden').css({visibility: "visible",display: "none"}).slideDown(400);
                },function(){
                    $(this).find('ul:first').slideUp(400);
                });
            }
            $(document).ready(function(){
                mainmenu();
            });
        </script>

        <script type="text/javascript">
            $(function(){
                $('#carousel').infiniteCarousel({
                    displayTime: 5000,
                    textholderHeight : .25
                });
            });
        </script>
        <link href="css/style.css" rel="stylesheet" type="text/css" />

    </head>
    <h1 style="background-color: black">
        
    </h1>
    <body style="background-color: white">

<div id="menu">
                        <ul id="nav">
                            <c:choose>
                                <c:when test="${not empty sessionScope.SPRING_SECURITY_CONTEXT.authentication.principal}">
                                    <sec:authorize access="hasRole('ROLE_ADMIN')">
                                        <li><a href="/adminSecured/ir_index">Administracion</a></li>
                                    </sec:authorize>
                                </c:when>
                                <c:otherwise>
                                    <div style="visibility:hidden"><li><a href="/index.html"></a></li></div>
                                </c:otherwise>
                            </c:choose>
                            <li><a href="/cerrado.html">Eventos sociales</a>
                                <ul class="submenu">
                                    <li><a href="#">Bodas</a></li>
                                    <li><a href="#">Comuniones</a></li>
                                    <li><a href="#">Bautizos</a></li>
                                    <li><a href="#">Fiestas privadas</a></li>
                                 </ul>
                            </li>
                        </li>
                        <li><a href="/cerrado.html">Empresa</a>
                            <ul class="submenu">
                                <li><a href="#">Coffee break</a></li>
                                <li><a href="#">Finger lunch</a></li>
                                <li><a href="#">Cocktails</a></li>
                                <li><a href="#">Menús</a></li>
                            </ul>
                        </li>
                        <li><a href="/fincas.html">Nuestros espacios</a>
                            <ul class="submenu">
                                <li><a href="/villanueva.html">Hacienda de Villanueva</a></li>
                                <li><a href="/gasco.html">El Gasco</a></li>
                                <li><a href="/monte.html">Monte de los Angeles</a></li>
                                <li><a href="/hormigal.html">El hormigal</a></li>
                                <li><a href="/cassy.html">Casa de los Cassy</a></li>
                            </ul>
                        </li>
                        <li><a href="/ir_a_crearmensaje">Contacto</a></li>
                        <li><a href="/cerrado.html">Otros servicios</a>
                        <li><a href="/cerrado.html">Sobre nosotros</a>
                        <c:choose>
                            <c:when test="${not empty sessionScope.SPRING_SECURITY_CONTEXT.authentication.principal}">
                                <li><a href="/logout">Desconectar  <img src="/images/close.gif"></img></a></li>
                                    </c:when>
                                    <c:otherwise>
                                <li><a href="/ir_registro">Registro</a></li>
                            </c:otherwise>
                        </c:choose>
                        </ul>
                       <div id="facebook"><a href="http://es-es.facebook.com/ArtazaCatering"><img src="/images/facebook.gif"></img></a></div>
                    </div>
            <div id="logo">
            <img src="/images/logo.png"
            </div>
<div>
            <c:if test="${not empty sessionScope.SPRING_SECURITY_CONTEXT.authentication.principal}">
                <font color="black"><center><i>Buenas <c:out value="${usuario.username}"></c:out></i></td></font>
            </c:if>
</div>
            <div>
            <font color="black"><center><i>Tu evento, tu momento</i></td></font>
            </div>

        <div>
        <embed style="" src="http://www.widgetsi.com/recursos/relojes/curiosos/5.swf"
                   wmode="transparent" type="application/x-shockwave-flash" height="120" width="120">
                <param name=wmode value=transparent>
            </embed>
            </div>
    </body>
    </html>